from django.urls import path, re_path
from . import views

urlpatterns = [
    # http://api.luffycity.cn:8000/cart/
    path(r"", views.CartAPIView.as_view({"post": "add",
                                         "get": "list",
                                         "patch": "change_selected",
                                         "put": "change_expire",
                                         "delete": "del_cart"})),
    path(r"order/", views.CartAPIView.as_view({"get": "get_selected_course"}))
]
